package br.xraylol.test.service;

import static org.junit.Assert.assertNotNull;

import java.util.HashMap;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import br.xraylol.service.SummonerService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:spring-module.xml")
public class SummonerTestService {

	@Autowired
	SummonerService service;

	@Test
	public void findSummonersByName() {
		HashMap<String, String> summoners = service.getSummaryPlayers(getSummonerAndChampion());

		assertNotNull(summoners);
	}

	private HashMap<String, String> getSummonerAndChampion() {
		 HashMap<String, String> summonerChampion = new  HashMap<String, String>();
		 summonerChampion.put("Difosal2", "Nasus");
		 //summonerChampion.put("The Enix", "Rengar");
		 //summonerChampion.put("Stirliing", "Tristana");
		 summonerChampion.put("HiroakiDes", "Lucian");
		 //summonerChampion.put("Kashihara", "Caitlyn");
		 //summonerChampion.put("VitorTadashi", "Draven");
		 
		 return summonerChampion;
	}
}
